package com.iven.xie.holder;

import com.iven.xie.service.TableService;
import org.springframework.context.support.ApplicationObjectSupport;
import org.springframework.stereotype.Component;

/**
 * @author xiezhendong
 * @date 2021/7/22
 */
@Component
public class SpringContextHolder extends ApplicationObjectSupport {
    public TableService getTableService(String beanName) {
        return super.getApplicationContext().getBean(beanName, TableService.class);
    }
}
